package com.mc.clt.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.mc.common.annotation.Excel;
import com.mc.common.core.domain.BaseEntity;

/**
 * 采集任务 对象 clt_task
 *
 * @author mc
 * @date 2021-03-15
 */
public class CltTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @Excel(name = "编号")
    private String id;

    /** 名称 */
    @Excel(name = "名称")
    private String taskName;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 任务发起人 */
    @Excel(name = "任务发起人")
    private String launchUserId;

    /** 所属实验室 */
    @Excel(name = "所属实验室")
    private String labId;

    /** 采集地点 */
    @Excel(name = "采集地点")
    private String location;

    /** 区域 */
    @Excel(name = "区域")
    private String regionId;

    /** 创建人 */
    private String createUserId;


    /** 更新人 */
    private String updateUserId;

    /** 更新人 */
    private List<CltTaskUser> users;

    private String num;

    private Long planNum;

    private String cltData;

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public Long getPlanNum() {
        return planNum;
    }

    public void setPlanNum(Long planNum) {
        this.planNum = planNum;
    }

    public String getCltData() {
        return cltData;
    }

    public void setCltData(String cltData) {
        this.cltData = cltData;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName()
    {
        return taskName;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setLaunchUserId(String launchUserId)
    {
        this.launchUserId = launchUserId;
    }

    public String getLaunchUserId()
    {
        return launchUserId;
    }
    public void setLabId(String labId)
    {
        this.labId = labId;
    }

    public String getLabId()
    {
        return labId;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setRegionId(String regionId)
    {
        this.regionId = regionId;
    }

    public String getRegionId()
    {
        return regionId;
    }
    public void setCreateUserId(String createUserId)
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId()
    {
        return createUserId;
    }
    public void setUpdateUserId(String updateUserId)
    {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserId()
    {
        return updateUserId;
    }

    public List<CltTaskUser> getUsers() {
        return users;
    }

    public void setUsers(List<CltTaskUser> users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("taskName", getTaskName())
                .append("startDate", getStartDate())
                .append("endDate", getEndDate())
                .append("state", getState())
                .append("launchUserId", getLaunchUserId())
                .append("labId", getLabId())
                .append("location", getLocation())
                .append("regionId", getRegionId())
                .append("createTime", getCreateTime())
                .append("createUserId", getCreateUserId())
                .append("updateUserId", getUpdateUserId())
                .append("users", getUsers())
                .append("num", getNum())
                .append("planNum", getPlanNum())
                .append("cltData", getCltData())
                .toString();
    }
}
